<template>
	<div>
		<h1>审核中</h1>
	</div>
</template>

<script>
import { clearLoginInfo } from '@/utils'
export default {
	name:'reviewing.vue',
	methods: {
		logout(){
			this.$http({
				url: this.$http.adornUrl('/sys/logout'),
				method: 'post',
				data: this.$http.adornData()
			}).then((res) =>{
				console.log(res)
				clearLoginInfo()
				this.$router.push({name:"login"})
			}).catch((err) =>console.log(err))
		}
	},
	mounted(){
		this.$alert("您的账号正在审核中，请等待审核通过后进行登录",{
			confirmByttonText: '确定',
			callback: action =>{
				this.logout()
			}
		})
	}
}
</script>